<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.6.0.js" type="text/javascript"></script>
		<style type="text/css">
			div {
				width: 200px;
				height: 200px;
				background-color: orange;
				position: absolute;
			}
		</style>
	</head>
	<body>
		<button>自定义动画</button>
		<div></div>
		<script type="text/javascript">
			$('button').click(function() {
				$('div').animate({
					width: 400,
					top: 200,
					left: 300,
					opacity: 0.3
				}, 2000)
			})
		</script>
	</body>
</html>
